.class public Lcom/mime/qweibo/QParameter;
.super Ljava/lang/Object;
.source "QParameter.java"

# interfaces
.implements Ljava/io/Serializable;
.implements Ljava/lang/Comparable;


# static fields
.field private static final serialVersionUID:J = 0x47ad97e5286ed448L


# instance fields
.field mName:Ljava/lang/String;

.field mValue:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter "name"
    .parameter "value"

    .prologue
    .line 10
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 11
    iput-object p1, p0, Lcom/mime/qweibo/QParameter;->mName:Ljava/lang/String;

    .line 12
    iput-object p2, p0, Lcom/mime/qweibo/QParameter;->mValue:Ljava/lang/String;

    .line 13
    return-void
.end method


# virtual methods
.method public compareTo(Ljava/lang/Object;)I
    .locals 4
    .parameter "o"

    .prologue
    .line 34
    move-object v1, p1

    check-cast v1, Lcom/mime/qweibo/QParameter;

    .line 35
    .local v1, param:Lcom/mime/qweibo/QParameter;
    iget-object v2, p0, Lcom/mime/qweibo/QParameter;->mName:Ljava/lang/String;

    iget-object v3, v1, Lcom/mime/qweibo/QParameter;->mName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v0

    .line 36
    .local v0, compared:I
    if-nez v0, :cond_0

    .line 37
    iget-object v2, p0, Lcom/mime/qweibo/QParameter;->mValue:Ljava/lang/String;

    iget-object v3, v1, Lcom/mime/qweibo/QParameter;->mValue:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v0

    .line 39
    :cond_0
    return v0
.end method

.method public equals(Ljava/lang/Object;)Z
    .locals 5
    .parameter "arg0"

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 17
    if-nez p1, :cond_1

    .line 29
    :cond_0
    :goto_0
    return v1

    .line 20
    :cond_1
    if-ne p0, p1, :cond_2

    move v1, v2

    .line 21
    goto :goto_0

    .line 23
    :cond_2
    instance-of v3, p1, Lcom/mime/qweibo/QParameter;

    if-eqz v3, :cond_0

    move-object v0, p1

    .line 24
    check-cast v0, Lcom/mime/qweibo/QParameter;

    .line 26
    .local v0, param:Lcom/mime/qweibo/QParameter;
    iget-object v3, p0, Lcom/mime/qweibo/QParameter;->mName:Ljava/lang/String;

    iget-object v4, v0, Lcom/mime/qweibo/QParameter;->mName:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 27
    iget-object v3, p0, Lcom/mime/qweibo/QParameter;->mValue:Ljava/lang/String;

    iget-object v4, v0, Lcom/mime/qweibo/QParameter;->mValue:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    move v1, v2

    goto :goto_0
.end method
